#! /bin/bash
#用于将data下所有.in生成.out文件
c_file=`ls *.c`
echo ${c_file:0:-2}
gcc *.c -o ${c_file:0:-2}
read
exe_file=`ls *.exe`
for i in `ls ./data/`
do
  echo ${i}
  ./${exe_file} < ./data/"${i:0:1}.in" > ./data/"${i:0:1}.out"
done
echo "这是用于测试一下代码，请输入任意一个输入用于测试："
./${exe_file}
# ./Prob1.exe <./data/1.in > ./data/1.out